﻿
using System.Data;
using DataSync.Properties;

namespace DataSync.Models.Attendane
{
    public class Attendance
    {
        public static DataSet GenearteDepartment()
        {
            var dataTable = new DataTable("AttendanceDataTable");
            var dataColumn = new DataColumn(Resources.EmployeeName);
            dataTable.Columns.Add(dataColumn);

            dataColumn = new DataColumn(Resources.DepartmentName);
            dataTable.Columns.Add(dataColumn);

            dataColumn = new DataColumn(Resources.PositionTitle);
            dataTable.Columns.Add(dataColumn);

            dataColumn = new DataColumn(Resources.AttendanceTimeIn);
            dataTable.Columns.Add(dataColumn);

            dataColumn = new DataColumn(Resources.AttendanceTimeOut);
            dataTable.Columns.Add(dataColumn);

            dataColumn = new DataColumn(Resources.WorkingShift);
            dataTable.Columns.Add(dataColumn);

            dataColumn = new DataColumn(Resources.AttendanceReason);
            dataTable.Columns.Add(dataColumn);

            dataColumn = new DataColumn(Resources.EmployeeSex);
            dataTable.Columns.Add(dataColumn);

            var dataSet = new DataSet("AttendanceDataSet");
            dataSet.Tables.Add(dataTable);

            return dataSet;
        }
    }
}